package LinkDate;

public class Node {
    //数值域
    public int no;
    public String name;
    //地址域
    public Node next;

    //实例化链表节点，给节点数值域赋值
    public Node(int no, String name) {
        this.no = no;
        this.name = name;
    }

    @Override
    public String toString() {
        return "Node{" +
                "no=" + no +
                ", name='" + name + '\'' +
                '}';
    }
}
